package com.sskj.community.ui.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.widget.FrameLayout;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.sskj.common.base.App;
import com.sskj.community.R;
import com.sskj.community.R2;
import com.sskj.community.presenter.GongGaoPresenter;
import com.sskj.lib.RConfig;
import com.sskj.lib.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * @author Hey
 * Create at  2019/07/19
 */
@Route(path = RConfig.COMMUNITY_ACTIVITY_GONGGAO)
public class GongGaoActivity extends BaseActivity<GongGaoPresenter> {

    @BindView(R2.id.tvTitle)
    TextView tvTitle;
    @BindView(R2.id.frameLayout)
    FrameLayout frameLayout;

    @Override
    public int getLayoutId() {
        return R.layout.community_activity_gong_gao;
    }

    @Override
    public GongGaoPresenter getPresenter() {
        return new GongGaoPresenter();
    }

    @Override
    public void initView() {
        tvTitle.setText(App.INSTANCE.getString(R.string.pingtaigonggao));
        getSupportFragmentManager()
                .beginTransaction()
                .add(R.id.frameLayout, (Fragment) ARouter.getInstance().build(RConfig.COMMUNITY_FRAGMENT_PUBLISH).navigation())
                .commitAllowingStateLoss();

    }

    @Override
    public void initData() {

    }
}
